const HMKEY='hm-toutiao'

function saveToken(obj){
    localStorage.setItem(HMKEY,JSON.stringify(obj))
}

function getToken(){
    return JSON.parse(localStorage.getItem(HMKEY))
}

function removeToken(){
    localStorage.removeItem(HMKEY)
}

export {saveToken,getToken,removeToken}